﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="3-5.aspx.cs" Inherits="实验三._3_5" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
        </div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="LinqDataSource1" OnSelectedIndexChanged="GridView1_SelectedIndexChanged1">
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" ShowSelectButton="True" />
                <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" SortExpression="id" />
                <asp:BoundField DataField="name" HeaderText="name" SortExpression="name" />
                <asp:BoundField DataField="sex" HeaderText="sex" SortExpression="sex" />
                <asp:BoundField DataField="img" HeaderText="img" SortExpression="img" DataFormatString="~/pic/{0}.png" />
                <asp:BoundField DataField="cid" HeaderText="cid" SortExpression="cid" />
                <asp:BoundField DataField="score" HeaderText="score" SortExpression="score" />
                <asp:BoundField DataField="sclass" HeaderText="sclass" SortExpression="sclass" />
            </Columns>
        </asp:GridView>
        <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="实验三.DataClasses1DataContext" EntityTypeName="" TableName="Student" 
            EnableDelete="true" EnableInsert="true" EnableUpdate="true">
        </asp:LinqDataSource>
        <asp:Label ID="Label1" runat="server"></asp:Label>
    </form>
</body>
</html>
